package day20171102;

import java.util.Scanner;


public class Test {

    public static void main(String[] args) {

        int a=0;
        int b=0;

        Scanner scanner=new Scanner(System.in);

        while(true) {

            System.out.println("请输入第一个数字：");
            a = scanner.nextInt();

            System.out.println("请输入第二个数字：");
            b = scanner.nextInt();

            int c=0;
            try {

           c = a / b;
            }catch (ArithmeticException e){

                System.out.println("除数为0！");
            }
            System.out.println(a + "/" + b + "=" + c);

        }

    }

}
